import request from '@/utils/request'

// 查询保理申请列表
export function listFactoring(query) {
  return request({
    url: '/finance/factoring/list',
    method: 'get',
    params: query
  })
}

// 获取应收租约保理Map
export function getFactoringApplyMap() {
  return request({
    url: '/finance/factoring/factoringApplyMap',
    method: 'get',
  })
}
// 获取符合保理申请租房合同列表
export function listFactoringContract(query) {
  return request({
    url: '/finance/factoring/listFactoringContract',
    method: 'get',
    params: query
  })
}

// 获取符合保理申请租房合同列表
export function chooseContract(param) {
  return request({
    url: '/finance/factoring/contract',
    method: 'get',
    params: param
  })
}

// 获取符合保理申请租房合同列表
export function save(data) {
  return request({
    url: '/finance/factoring',
    method: 'post',
    data: data
  })
}
// 获取符合保理申请租房合同列表
export function genConstruct(data) {
  return request({
    url: '/finance/genConstruct/gen',
    method: 'get',
    params: data
  })
}


